import request from './httpConfig/request'

/*登录*/
export function loginByUsername(username, password) {

  return request({
    url: 'user/getTableData',
    method: 'post',
    data:{
      "username":username,
      "password":password
    }
  })
}

/*退出*/
export function logout() {
  return request({
    url: '/login/logout',
    method: 'post'
  })
}

/*获取用户列表*/
export function getUserInfo(token) {
  return request({
    url: '/user/info',
    method: 'get',
    params: { token }
  })
}

